PR4000 Series communication driver

 

PR4000 Series communication driver is the driver to communicate with PR 4000 Series controller of MKS Technology for productivity in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of PR4000 Series communication driver.

<Figure 1> Read setting example of PR4000 Series communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively according to setting of controller.

 Baud rate, parity bit, data bit, stop bit of PR4000 Series controller can set by operation button of front panel.

Also you can set 'weather to use of RS-485 communication'( 0 = don't use, 1 = use, default : 0) by using option part.

 

PR4000 Series communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) STATION – 0 ~ 31 station number of controller when RS-485 communication mode.

2) Read command type – command = ?AC1, ?AC2, ?AV1, ?AV2, ST, .... ( refer to <Table 1> )

3) Read line/point number – line/point number when ?DP1, ?DP2 /  ?LN1, ?LN2 read command.

?DP1, ?DP2 read command : line number,

 ?LN1, ?LN2 read command : point number,

 other command  : don't care.

4) Save Start Address for Communication Server – Input save start address of communication server.

5) Read Size – fixed to 1. ( fixed to according to read command )

 

Read schedule example)

READ,     0,  ?AC1,     0,    0,   1,

READ,     0,  ?AC2,     0,    2,   1,

READ,     0,  ?AV1,     0,    4,   1,

READ,     0,  ?AV2,     0,    6,   1,

 

<Table 1> Read command and contents for  PR4000 Series communication driver. 

Read command Contents Data saving address

Remarks

?DT read of displayed text Start addr + 0 : readed text (save only at String memory)

 

?KY read of recent Key value Start addr + 0 : key value

OFF = 7,   ON = 8 ,  ESC = 9,   ENTER = 10,  RIGHT = 11,

LEFT = 12, UP = 13,  DOWN = 14, No Key = 255

?DG read od displayed dialog Start addr + 0 : Dialog number

 

?ID read of ID string Start addr + 0 : ID value

 

?RT read of Remote operation status Start addr + 0 : 1 = remote, 0 = remote off

ON/OFF

?AC1, ?AC2 read of channel value Start addr + 0 : set point value for each channel,
Start addr + 1 : vlv value = ON(1)/OFF(0),

-5 % ~ 110 %

?AV1, ?AV2 read of present value Start addr + 0 : present value for each channel
?SP1, ?SP2 read of setting value Start addr + 0 : setting value for each channel
?EX1, ?EX2 read of external input value Start addr + 0 : external input value for each channel
?ST read of Hex Status Start addr + 0 : Hex Status value

Bit 0 = Com Err,          Bit 1 = Under Range AIN0,

Bit 2 = Over Range AIN0,  Bit 3 = Under Range AIN1,

Bit 4 = Over Range AIN1,  Bit 5 = Relay 0,

Bit 6 = Relay 1,           Bit 7 = Parameter Changed by User

?VL1, ?VL2 read of channel status Start addr + 0 : channel status for each channel

0 = OFF, 1 = ON

?RL1, ?RL2  relay status read for each channel Start addr + 0 : relay status for each channel
?DP1, ?DP2 read of Setup Configuration Start addr + 0 : tag value for each channel,
Start addr + 1 : channel value,(1 or 2)
Start addr + 2 : enable value(ON/OFF)

read line = 1 ~ 2

 tag value : 0 = SP, 1 = VA, 2 = CH, 3 = FL, 4 = PR, 5 = EX

?DP4 read of Setup Configuration 4 Start addr + 0 : enable value(ON/OFF)

 

?RG1, ?RG2 readed of range or unit Start addr + 0 : range value,
Start addr + 1 : unit value

Ubar = 0,   mbar = 1,   bar = 2,   mTor = 3,   Torr = 4,

Ktor = 5 ,   Pa = 6,     kPa = 7,   mH2O = 8,  cH2O = 9,

PSI = 10,   N/qm = 11, SCCM = 12,SLM = 13,  SCM = 14,

SCFH = 15, SCFM = 16, mA = 17,   V = 18,     % = 19,

C = 20

?GN1, ?GN2 read of Gain value Start addr + 0 : Gain value

0.001 ~ 2.0

?OF1, ?OF2 read of Offset value Start addr + 0 : Offset value

-250 ~ +250

?RO1, ?RO2 read of RTD Offset value Start addr + 0 : RTD Offset vaule
?IN1, ?IN2 read of Input Range Start addr + 0 : Input Range value

1 ~ 10 V

?OT1, ?OT2 read of Output Range Start addr + 0 : Output Range value
?EI1, ?EI2 read of External Input Start addr + 0 : External Input value
?EO1, ?EO2 read of External Output Start addr + 0 : External Output value
?SM1, ?SM2 read of Signal Mode Start addr + 0 : Signal Mode value

0 = Meter, 1 = OFF, 2 = INDEP, 3 = EXTRN, 4 = SLAVE, 5 = RTD

?SC1, ?SC2 read of Scale Start addr + 0 : Scale value

-5 % ~ 110 %

?LN1, ?LN2 read of Linearization Table Start addr + 0 : Point X value,
Start addr + 1 : Point Y value

read point = 0 ~ 10

-5 % ~ 110 %

?LS1, ?LS2 read of Table Size Start addr + 0 : Table Size value

0 ~ 10

?LM1, ?LM2 read of Limit Mode Start addr + 0 : Limit Mode value

0 = SLEEP,  1 = LIMIT,  2 = BAND,  3 = MLIMIT,  4 = MBAND

?DB1, ?DB2 read of Dead Band Start addr + 0 : Dead Band value

0.0 % ~ 9.9 %

?UL1, ?UL2 read of Upper Limit Start addr + 0 : Upper Limit value

-5 % ~ 110 %

?LL1, ?LL2 read of Lower Limit Start addr + 0 : Lower Limit value
?FR1, ?FR2 read of Formula Relay Start addr + 0 : Formula Relay value
( refer to String memory value)

R1, R2, L1, L2, U1, U2, E1, E2, V1, V2, D1, D2,

T1, T2, T3, T4, 1, 0, ... + string, ... format

?FT1, ?FT2 read of Formula Temporary Start addr + 0 : Formula Temporary value
( refer to String memory value)

R1, R2, L1, L2, U1, U2, E1, E2, V1, V2, D1, D2,

1, 0, ... + string, ... format

?PY read of Parity Start addr + 0 : Parity setting value

0 = NONE,   1 = EVEN,   2 = ODD

?BD read of Baud Rate Start addr + 0 : Baud Rate setting value

0 = 110,   1 = 1200,   2 = 2400,  3 = 4800,  4 = 9600,

5 = 19200, 6 = 38400,  7 = 57600,  8 = 76800, 9 = 115200

?AD read of Address setting Start addr + 0 : Address setting value

0 ~ 31

?IM read of Interface Mode Start addr + 0 : Interface Mode value

 

?RS read of Resolution Start addr + 0 : Resolution value

ON(1), OFF(0)

¡¦ read command by string Start addr + 0 : 1st readed value
Start addr + ¡¦ : ¡¦

 

<Table 1> Read command and contents for  PR4000 Series communication driver

If you click the icon  in protocol option part, you can see the dialog box such as <Figure 2>. you can also set read schedule by using this part. 

<Figure 2> Example of PR4000 Series communication driver¡¯s Option dialog box

You can set read schedule by using , , button and listbox of <Figure 2>. 

Also, you can set weather to use of RS-485 communication by using the part of ¡®Use RS-485 Communication' shown in <Figure 2>.

<Figure 3> Example of PR4000 Series communication driver¡¯s read schedule Add/Edit dialog box

When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.

 

2. Write settings

You can control PR4000 Series controller by using write settings.

 

Digital Write

Digital write and analog write have the same setting parameters except output value.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             0 ~ 31 station number of controller when RS-485 communication mode.

3)  ADDRESS           don't care.

4) Extra1                    write command = SP1, SP2, .... ( refer to <Table 2> )

5) Extra2                    On/Off value or unit setting number.

 AC1, AC2 write command : On/Off value,

 RG1, RG2 write command : unit setting number,

other command : don't care.

 

<Table 2> is write command and contents for  PR4000 Series communication driver.

Write command Contents Output value

Remarks

DT write of to be displayed Text don't care

to be displayed Text : input at Extra1

input format : command, displayed Text.

example) DT, HELLO

KY key value setting key value

OFF = 7,   ON = 8 ,  ESC = 9,   ENTER = 10,  RIGHT = 11,

LEFT = 12, UP = 13,  DOWN = 14, No Key = 255

DG setting of to be displayed dialog Dialog value number

 

RT setting of Remote status 1 = remote, 0 = remote off

 

AC1, AC2 write of channel value set point value,
Extra2 : vlv value = 1 : ON/ 0 : OFF,

-5 % ~ 110 %

AV1, AV2 write of present value present value
SP1, SP2 write of setting value setting value
EX1, EX2 write of external input value external input value
VL1, VL2 write of channel status 0 = OFF, 1 = ON

0 = OFF, 1 = ON

RL1, RL2 write of relay value
DP1, DP2 setting of Setup Configuration dont' care

Setup Configuration : input at Extra1

input format : command, Setup Configuration.

example) DP1,1,3,1

DP4 setting of Setup Configuration 4 0 = OFF, 1 = ON

enable °ª

RG1, RG2 write of range and unit value 1 ~ 50 range value,
Extra2 = unit value

Ubar = 0,   mbar = 1,   bar = 2,   mTor = 3,   Torr = 4,

Ktor = 5 ,   Pa = 6,     kPa = 7,   mH2O = 8,  cH2O = 9,

PSI = 10,   N/qm = 11, SCCM = 12,SLM = 13,  SCM = 14,

SCFH = 15, SCFM = 16, mA = 17,   V = 18,     % = 19,

C = 20

GN1, GN2 write of Gain value Gain value

0.001 ~ 2.0

OF1, OF2 write of Offset value Offset value

-250 ~ +250

RO1, RO2 write of RTD Offset value RTD Offset value
AZ1, AZ2 write of Auto Zero setting Auto Zero value
IN1, IN2 write of Input Range Input Range value

1 ~ 10 V

OT1, OT2 write of Output Range Output Range value
EI1, EI2 write of External Input External Input value
EO1, EO2 write of External Output External Output value
SM1, SM2 write of Signal Mode Signal Mode value

0 = Meter, 1 = OFF, 2 = INDEP, 3 = EXTRN, 4 = SLAVE, 5 = RTD

SC1, SC2 write of Scale Scale value

-5 % ~ 110 %

LN1, LN2 write of Linearization Table don't care

Linearization Table : input at Extra1

input format : command, Linearization Table. 

example) LN1,2,2.1,2.2

LS1, LS2 write of Table Size Table Size value

0 ~ 10

LM1, LM2 write of Limit Mode Limit Mode value

0 = SLEEP,  1 = LIMIT,  2 = BAND,  3 = MLIMIT,  4 = MBAND

DB1, DB2 write of Dead Band Dead Band value

0.0 % ~ 9.9 %

UL1, UL2 write of Upper Limit Upper Limit value

-5 % ~ 110 %

LL1, LL2 write of Lower Limit Lower Limit value
FR1, FR2 write of Formula Relay don't care

Formula Relay : input at Extra1

input format : command, Formula Relay.  

example) FR1,!R1+!T4+!D1

 

R1, R2, L1, L2, U1, U2, E1, E2, V1, V2, D1, D2,

T1, T2, T3, T4, 1, 0,... + string, ... format

FT1, FT2 write of Formula Temporary don't care

Formula Temporary : input at Extra1

input format : command, Formula Temporary.  

example) FT1,!R1+!T4+!D1

 

R1, R2, L1, L2, U1, U2, E1, E2, V1, V2, D1, D2,

1, 0,... + string, ... format

PY write of Parity Parity setting value

0 = NONE,   1 = EVEN,   2 = ODD

BD write of Baud Rate Baud Rate setting value

0 = 110,   1 = 1200,   2 = 2400,  3 = 4800,  4 = 9600,

5 = 19200, 6 = 38400,  7 = 57600,  8 = 76800, 9 = 115200

AD write of Address setting Address setting value

0 ~ 31

IM write of Interface Mode Interface Mode value

 

RS write of Resolution Resolution value

ON(1), OFF(0)

DF write of Default Value don't care

Default Value : input at Extra1

input format : command, Default Value.  

example) DF,P

dmode : P = pressure,  F = flow

#0 write of Unlock Setup  
#1 write of Lock Setup
<Table 2> Write command and contents for  PR4000 Series communication driver

Write example 1)

PORT:0,  station:1, ADDRESS:0000, Extra1: SP1,  Extra2 :

The setting parameter shown above is write of setting value example for 1 channel, 1 station number PR4000 Series controller.

 

Write example 2)

PORT:0,  station:1, ADDRESS:0000, Extra1: RL1,  Extra2 :

The setting parameter shown above is write of relay value control( On/Off ) example for 1 channel, 1 station number PR4000 Series controller.

 

3. Connection of main power and communication cable

Connection of main power and communication cable are as follows:

 

Connection of main power

Please connect 220V AC to main power connector such as <Figure 4>.

<Figure 4> Connection example of main power and communication cable to PR400 Series controller

Connection of RS-232C communication cable

Please connect normal( Cross ) RS-232C communication cable to 9 pin socket of PR400 Series controller.

 

Connection of RS-485 communication cable

Please connect RS-485 communication cable to 9pin connector's 2, 4, 9, 11 pin ( RX+, RX-, Tx+, Tx- of computer, respectively ) of of PR400 Series controller.

 

<Figure 5> is appearance of PR400 Series controller.
<Figure 5> Appearance of PR400 Series controller

4. Setting of baud rate, parity bit

PR4000 Series controller can set baud rate, parity bit, ... by using setting button of front panel. ( refer to <Figure 5> )

1. Please enter to 'Setup' menu by pressing 'Up', 'Down' at the same time.

2. Press 'ENTER' button after selecting the 'Setup' menu by 'Left', Right' button.

3. Select 'BAUDRATE' menu by 'Up', 'Down' button.

4. Select baud rate by 'Left', 'Light' button.

5. Press 'Up', 'Down' button after selecting the baud rate.

6. Press 'ENTER' button. Then will be completed the baud rate setting.

7. Also you can set 'parity bit', ... the same way as above.